
(() => {
let pixel_url_base = "https:\/\/app.socialproofy.io\/";
let pixel_key = "3nzkt3zfgy6kurxruemfpbwzu8pb7zhl";
let pixel_analytics = true;
let pixel_css_loaded = false;

let link = document.createElement('link');
link.href = 'https://app.socialproofy.io/themes/s00p/assets/css/pixel.css?v=511010';
link.type = 'text/css';
link.rel = 'stylesheet';
link.media = 'screen,print';
link.onload = function() { pixel_css_loaded = true };
document.getElementsByTagName('head')[0].appendChild(link);

let get_ip=()=>{if(sessionStorage.getItem("user_ip")&&""!=sessionStorage.getItem("user_ip"))return sessionStorage.getItem("user_ip");{let a=!1;try{let b=new XMLHttpRequest;b.open("GET","https://api64.ipify.org",!1),b.send(null),a=b.responseText}catch(c){}return sessionStorage.setItem("user_ip",a),a}},get_location_data=c=>{if(sessionStorage.getItem("user_location")&&""!=sessionStorage.getItem("user_location"))return sessionStorage.getItem("user_location");{if(!c)return!1;let a=new XMLHttpRequest;a.open("GET",`https://www.iplocate.io/api/lookup/${c}`,!1),a.send(null);try{let b=JSON.parse(a.responseText),d=JSON.stringify({city:b.city,country:b.country,country_code:b.country_code});return sessionStorage.setItem("user_location",d),d}catch(e){return!1}}},send_tracking_data=a=>{if(!(a.subtype&&["impression","click","hover"].includes(a.subtype))||pixel_analytics){a.current_page=window.location.href;try{navigator.sendBeacon(`${pixel_url_base}pixel-track/${pixel_key}`,JSON.stringify(a))}catch(b){console.log(`Pixel: ${b}`)}}},user={pixel_key:pixel_key,ip:get_ip(),location:get_location_data(get_ip()),agent:navigator.userAgent,current_page:encodeURIComponent(window.location.href)},get_scroll_percentage=()=>{let a=document.documentElement,b=document.body,c="scrollTop",d="scrollHeight";return(a[c]||b[c])/((a[d]||b[d])-a.clientHeight)*100},check_sp_ui_pixel=()=>{let c,d,a,b;return c=window.location.href,a=(d=new URL(c)).searchParams.get("_SP_UI_d"),b=d.searchParams.get("_SP_UI_p"),null!==a&&null!==b&&(new Image().src=`${pixel_url_base}pixel-check?p=${b}&ip=${get_ip()}&d=${a}`,!0)};class SocialProofyManager{constructor(a){this.options={},this.options.content=a.content||"",this.options.should_show=void 0===a.should_show||a.should_show,this.options.delay=void 0===a.delay?3e3:a.delay,this.options.duration=void 0===a.duration?3e3:a.duration,this.options.selector=a.selector,this.options.url=a.url,this.options.url_new_tab=void 0===a.url_new_tab||a.url_new_tab,this.options.close=a.close||!1,this.options.stop_on_focus=void 0===a.stop_on_focus||a.stop_on_focus,this.options.position=void 0===a.position?"bottom_left":a.position,this.options.trigger_all_pages=void 0===a.trigger_all_pages||a.trigger_all_pages,this.options.triggers=a.triggers||[],this.options.display_frequency=void 0===a.display_frequency?"all_time":a.display_frequency,this.options.display_mobile=void 0===a.display_mobile||a.display_mobile,this.options.display_desktop=void 0===a.display_desktop||a.display_desktop,this.options.display_trigger=void 0===a.display_trigger?"delay":a.display_trigger,this.options.display_trigger_value=void 0===a.display_trigger_value?3:a.display_trigger_value,this.options.data_trigger_auto=void 0!==a.data_trigger_auto&&a.data_trigger_auto,this.options.data_triggers_auto=a.data_triggers_auto||[],this.options.on_animation=void 0===a.on_animation?"fadeIn":a.on_animation,this.options.off_animation=void 0===a.off_animation?"fadeOut":a.off_animation,this.options.notification_id=a.notification_id||!1}build(){if(this.options.data_trigger_auto&&this.is_page_triggered(this.options.data_triggers_auto)&&document.querySelectorAll("form").forEach(a=>{a.addEventListener("submit",d=>{let b=this.options.notification_id,c={};a.querySelectorAll("input").forEach(a=>{"password"!=a.type&&"hidden"!=a.type&& -1===a.name.indexOf("captcha")&&(c[`form_${a.name}`]=a.value)}),send_tracking_data({...user,...c,notification_id:b,type:"auto_capture"})})}),!this.options.should_show|| !this.options.trigger_all_pages&&!this.is_page_triggered(this.options.triggers))return!1;switch(this.options.display_frequency){case"all_time":break;case"once_per_session":if(sessionStorage.getItem(`notification_display_frequency_${this.options.notification_id}`))return!1;break;case"once_per_browser":if(localStorage.getItem(`notification_display_frequency_${this.options.notification_id}`))return!1}if(!this.options.display_mobile&&window.innerWidth<768|| !this.options.display_desktop&&window.innerWidth>768)return!1;let a=document.createElement("div");if(a.className="social-proofy",a.className+=` social-proofy-${this.options.position}`,a.setAttribute("data-position",this.options.position),a.setAttribute("data-on-animation",this.options.on_animation),a.setAttribute("data-off-animation",this.options.off_animation),a.setAttribute("data-notification-id",this.options.notification_id),a.innerHTML=this.options.content,this.options.close){let b=a.querySelector('span[class="social-proofy-close"]');b.innerHTML="&#10006;",b.addEventListener("click",b=>{b.stopPropagation(),this.constructor.remove_notification(a)})}void 0!==this.options.url&&""!==this.options.url&&(a.className+=" social-proofy-clickable",a.addEventListener("click",a=>{this.options.notification_id&&send_tracking_data({...user,notification_id:this.options.notification_id,type:"notification",subtype:"click"}),this.options.url_new_tab?window.open(this.options.url,"_blank"):window.location=this.options.url,a.stopPropagation()}));let c=a.querySelector(".social-proofy-site");return c&&c.addEventListener("click",a=>{let b=a.currentTarget.href;window.open(b,"_blank"),a.stopPropagation(),a.preventDefault()}),a}initiate(b={}){let a=()=>{let a=null;a=setInterval(()=>{pixel_css_loaded&&(clearInterval(a),this.process(b))},100)};"complete"!==document.readyState&&("loading"===document.readyState||document.documentElement.doScroll)?document.addEventListener("DOMContentLoaded",()=>{a()}):a();let c=location.href;setInterval(()=>{if(c!=location.href){c=location.href;let b=document.querySelector(`[data-notification-id="${this.options.notification_id}"]`);this.constructor.remove_notification(b),a()}},750)}process(b={}){let a=this.build();if(!a)return!1;switch(this.options.position){case"top":case"top_floating":document.body.prepend(a);break;default:document.body.appendChild(a)}let c=()=>{switch(a.style.display="block",a.className+=` on-${this.options.on_animation}`,this.constructor.reposition(),b.displayed&&b.displayed(a),-1!==this.options.duration&&(a.timeout=setTimeout(()=>{this.constructor.remove_notification(a)},this.options.duration)),this.options.stop_on_focus&& -1!==this.options.duration&&(a.addEventListener("mouseover",b=>{window.clearTimeout(a.timeout)}),a.addEventListener("mouseleave",()=>{a.timeout=setTimeout(()=>{this.constructor.remove_notification(a)},this.options.duration)})),this.options.display_frequency){case"all_time":break;case"once_per_session":sessionStorage.setItem(`notification_display_frequency_${this.options.notification_id}`,!0);break;case"once_per_browser":localStorage.setItem(`notification_display_frequency_${this.options.notification_id}`,!0)}this.options.notification_id&&(send_tracking_data({...user,notification_id:this.options.notification_id,type:"notification",subtype:"impression"}),a.addEventListener("mouseover",()=>{sessionStorage.getItem(`notification_hover_${this.options.notification_id}`)||(send_tracking_data({...user,notification_id:this.options.notification_id,type:"notification",subtype:"hover"}),sessionStorage.setItem(`notification_hover_${this.options.notification_id}`,!0))})),window.removeEventListener("resize",this.constructor.reposition),window.addEventListener("resize",this.constructor.reposition)};switch(this.options.display_trigger){case"delay":setTimeout(()=>{c()},1e3*this.options.display_trigger_value);break;case"exit_intent":let d=!1;document.addEventListener("mouseout",a=>{let b=Math.max(document.documentElement.clientWidth,window.innerWidth||0);!(a.clientX>=b-50)&&!(a.clientY>=50)&&(a.relatedTarget||a.toElement||d||(c(),d=!0))});break;case"scroll":let e=!1;document.addEventListener("scroll",a=>{!e&&get_scroll_percentage()>this.options.display_trigger_value&&(c(),e=!0)})}}is_page_triggered(a){let b=!1;for(let c of a)if(c.type.startsWith("not_")){b=!0;break}return a.forEach(a=>{switch(a.type){case"exact":a.value==window.location.href&&(b=!0);break;case"not_exact":a.value==window.location.href&&(b=!1);break;case"contains":window.location.href.includes(a.value)&&(b=!0);break;case"not_contains":window.location.href.includes(a.value)&&(b=!1);break;case"starts_with":window.location.href.startsWith(a.value)&&(b=!0);break;case"not_starts_with":window.location.href.startsWith(a.value)&&(b=!1);break;case"ends_with":window.location.href.endsWith(a.value)&&(b=!0);break;case"not_ends_with":window.location.href.endsWith(a.value)&&(b=!1);break;case"page_contains":document.body.innerText.includes(a.value)&&(b=!0)}}),b}static remove_notification(a){try{let b=a.getAttribute("data-on-animation"),c=a.getAttribute("data-off-animation");a.className=a.className.replace(` on-${b}`,` off-${c}`),setTimeout(()=>{a.style.display="none",a.parentNode.removeChild(a),SocialProofyManager.reposition()},400)}catch(d){a.style.display="none"}}static reposition(){try{let c=document.querySelectorAll('div[class*="social-proofy"][class*="on-"]'),h=window.innerHeight>0?window.innerHeight:screen.height,f=Math.floor(h/2),d={top_left:{left:20,top:20},top_center:{top:20},top_right:{right:20,top:20},middle_left:{left:20,top:f},middle_center:{top:f},middle_right:{right:20,top:f},bottom_left:{left:20,bottom:20},bottom_center:{bottom:20},bottom_right:{right:20,bottom:20}};for(let a=c.length-1;a>=0;a--){let g=20,b=c[a].getAttribute("data-position"),e=c[a].offsetHeight;switch(b){default:continue;case"top_left":case"top_center":case"top_right":c[a].style.top=`${d[b].top}px`,d[b].top+=e+g;break;case"middle_left":case"middle_center":case"middle_right":c[a].style.top=`${d[b].top-e/2}px`,d[b].top+=e+g;break;case"bottom_left":case"bottom_center":case"bottom_right":c[a].style.bottom=`${d[b].bottom}px`,d[b].bottom+=e+g}}}catch(i){}}}
let check_pixel = check_sp_ui_pixel();
if(check_pixel){setTimeout(() => {window.close();}, 2500);}
else{

window.onload = function(){
let sp_font_script = document.createElement('script');
sp_font_script.src = 'https://app.socialproofy.io/themes/s00p/assets/js/sp-font.js?v=511010';
sp_font_script.onload = function() {};
document.getElementsByTagName('body')[0].appendChild(sp_font_script);
};

var _0xa4c0=['track'];(function(_0x31058d,_0x57e8f5){var _0x481138=function(_0x631f82){while(--_0x631f82){_0x31058d['push'](_0x31058d['shift']());}};_0x481138(++_0x57e8f5);}(_0xa4c0,0x12d));var _0x3b49=function(_0x182344,_0x47e145){_0x182344=_0x182344-0x0;var _0x382af0=_0xa4c0[_0x182344];return _0x382af0;};send_tracking_data({...user,'type':_0x3b49('0x0')});

}})();